#ifndef BUTTONSCONTAINERWIDGET_H
#define BUTTONSCONTAINERWIDGET_H

#include <QWidget>
#include <QVector>
#include <QPushButton>
#include <QVBoxLayout>

class ButtonsContainerWidget : public QWidget
{
    Q_OBJECT
private:
    QVector<QPushButton*> buttons;

    QVBoxLayout* MainLayout;
public:
    //NO PARENT!
    ButtonsContainerWidget();
    ButtonsContainerWidget( const QVector<QString> titles );
    ~ButtonsContainerWidget();

    void AddButton( const QString title );
    QPushButton* GetButton( int index ) const;

    void AddStretch();
};

class OrderButtonsWidget : public ButtonsContainerWidget
{
    Q_OBJECT
public:
    OrderButtonsWidget();
};

class IncomeButtonsWidget : public ButtonsContainerWidget
{
    Q_OBJECT
public:
    IncomeButtonsWidget();
};

class StockButtonsWidget : public ButtonsContainerWidget
{
    Q_OBJECT
public:
    StockButtonsWidget();
};

#endif // BUTTONSCONTAINERWIDGET_H
